<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.2 & 7.3
 * @ Decoder version: 1.1.6
 * @ Release: 10/08/2022
 */

// Decoded file for php version 71.
namespace app\Common\model;

class LongbingCardWechatCode extends \app\BaseModel
{
    protected $name = "shequshop_school_wechat_code";
    public function createCode($data)
    {
        $data["create_time"] = time();
        $result = $this->createRow($data);
        return !empty($result);
    }
    public function getCode($filter)
    {
        $filter["deleted"] = 0;
        $result = $this->getRow($filter);
        return $result;
    }
    public function listCode($filter)
    {
        $filter["deleted"] = 0;
        $result = $this->listRow($filter);
        return $result;
    }
    public function getCodeCount($filter)
    {
        $filter["deleted"] = 0;
        $count = $this->where($filter)->count();
        return $count;
    }
    public function updateCode($filter, $data)
    {
        $filter["deleted"] = 0;
        $data["update_time"] = time();
        $result = $this->updateRow($filter, $data);
        return !empty($result);
    }
    public function delCode($filter)
    {
        $filter["deleted"] = 0;
        $result = $this->deleteRow($filter);
        return !empty($result);
    }
    public function destoryCode($filter)
    {
        $result = $this->destoryRow($filter);
        return !empty($result);
    }
}

?>